package city.spring.modules.medicine.repository;

import city.spring.modules.medicine.entity.MedicinewarehousingEntity;
import city.spring.modules.medicine.vo.MedicinewarehousingVO;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 存储库：药品入库信息
 *
 * @author 谢金婷
 * @date 2020-06-24 15:09:27
 */
@Repository
public interface MedicinewarehousingRepository extends BaseMapper<MedicinewarehousingEntity> {
    /**
     * 根据id获取入库信息
     *
     * @param id
     * @return
     */
    MedicinewarehousingEntity getById(String id);

    IPage<MedicinewarehousingVO> listPage(Page<? extends MedicinewarehousingEntity> page, @Param(Constants.WRAPPER) Wrapper<? extends MedicinewarehousingEntity> wrapper);
}